package com.usefullc.blog.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.usefullc.system.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 评论实体
 * @author: 星空
 * @date: 2022-07-07
 */
@ApiModel("评论")
@TableName("blog_reply")
@Data
public class Reply extends BaseEntity {

//useful_auto_generate_section_start

    @ApiModelProperty(notes = "文章")
    @TableField(value="`articleId`")
    private Long articleId;

    @ApiModelProperty(notes = "评论用户")
    @TableField(value="`userId`")
    private Long userId;

    @ApiModelProperty(notes = "引用评论")
    @TableField(value="`replyId`")
    private Long replyId;

    @ApiModelProperty(notes = "评论内容")
    @TableField(value="`content`")
    private String content;

    @ApiModelProperty(notes = "点赞数")
    @TableField(value="`likeNum`")
    private Integer likeNum;


//useful_auto_generate_section_end

}
